package com.example.tioClient.handler;

import org.tio.core.ChannelContext;
import org.tio.core.intf.Packet;

public interface ClientHandlerBase {
    /**
     * 接收消息处理
     * @param packet
     * @param channelContext
     * @throws Exception
     */
    void handler(Packet packet, ChannelContext channelContext) throws Exception;

    /**
     * 心跳处理
     * @param channelContext
     * @return
     */
    Packet heartbeatPacket(ChannelContext channelContext);

}
